<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
</head>
<body>
    <%- include('head',{title:"登录"})%>
    <div>
        <h2>Login  - Login </h2>
        <!-- ajax 把表单登录改成 ajax 登录  -->
        <form action="/users/login"  method="POST">
            <div>
                <label for="username">用户名:</label>
                <input type="text" placeholder="请输入用户名" value="<%- username %>" id="username" name="username" required>
            </div> 
            <div>
                <label for="password">密码:</label>
                <input type="password" placeholder="请输入密码" id="password" name="password" required>
            </div> 
            <div>
                <button type="submit">登录</button>
                <button type="reset">重置</button>
            </div>
        </form>
    </div>
    <%- include('foot')  %>
</body>
</html>